Skip to content

feat: permalink on oCIS servers - #5022

Open
joragua wants to merge 8 commits into
masterfrom
feature/permalink_sharing_ng
Open

joragua wants to merge 8 commits into
masterfrom
feature/permalink_sharing_ng

Conversation

@joragua

@joragua joragua commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Related Issues

App: #4939

  • Add changelog files for the fixed issues in folder changelog/unreleased. More info here
  • Add feature to Release Notes in ReleaseNotesViewModel.kt creating a new ReleaseNote() with String resources (if required)

QA

@joragua joragua self-assigned this Oct 16, 2026
@joragua joragua linked an issue Oct 16, 2026 that may be closed by this pull request
7 of 10 tasks
@joragua
joragua force-pushed the feature/permalink_sharing_ng branch 3 times, most recently from 8740a49 to 2ac30eb Compare October 16, 2026 12:23
Signed-off-by: Jorge Aguado Recio <jaguado@izertis.com>
@joragua
joragua force-pushed the feature/permalink_sharing_ng branch from 8372f01 to 0102a3f Compare October 19, 2026 09:34
Signed-off-by: Jorge Aguado Recio <jaguado@izertis.com>
Signed-off-by: Jorge Aguado Recio <jaguado@izertis.com>
Signed-off-by: Jorge Aguado Recio <jaguado@izertis.com>
Signed-off-by: Jorge Aguado Recio <jaguado@izertis.com>
Signed-off-by: Jorge Aguado Recio <jaguado@izertis.com>
@joragua
joragua force-pushed the feature/permalink_sharing_ng branch from 5964725 to a256dfd Compare October 19, 2026 11:43
Signed-off-by: Jorge Aguado Recio <jaguado@izertis.com>
@joragua
joragua marked this pull request as ready for review October 20, 2026 09:45
@joragua
joragua requested a review from a team as a code owner October 20, 2026 09:45
}

binding.permanentLinkButton.isVisible = false
val privateLinkDisabled = capabilities?.filesPrivateLinks == CapabilityBooleanType.FALSE

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If capabilities? is null, capabilities?.filesPrivateLinks is also null, so capabilities?.filesPrivateLinks == CapabilityBooleanType.FALSE is false.

Then, privateLinkDisabled is false. The condition below:

if (file.privateLink.isNullOrEmpty() || privateLinkDisabled) could be true if the privateLink is not null or empty, and the privateLink will be visible without having the capability value. Would this be dangerous?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capabilities cannot be null at this point since they are checked before setting the oCIS layout. Removing nullability from this variable. Good catch! 👍🏻

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool!

Signed-off-by: Jorge Aguado Recio <jaguado@izertis.com>
@joragua
joragua requested a review from jesmrec October 20, 2026 12:35

@jesmrec jesmrec left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR approved, let's move to QA 🚀

@jesmrec
jesmrec self-requested a review October 20, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Sharing NG: Permalink

2 participants